<template>
  <el-container>
    <el-header>coin 持仓收益</el-header>
    <el-main>
      <el-tabs v-model="activeName" @tab-click="handleClick" type="border-card">
        <el-tab-pane label="现货" name="first">
          <cash></cash>
        </el-tab-pane>
        <el-tab-pane label="币本位合约" name="second">
          <contracta></contracta>
        </el-tab-pane>
        <el-tab-pane label="设置" name="third">设置</el-tab-pane>
      </el-tabs>
    </el-main>
    <el-footer>
      <span style="float:left;">@sorry510</span>
    </el-footer>
  </el-container>
</template>

<script>
  import Cash from './Table/Cash.vue'
  import contracta from './Table/Contracta.vue'
  export default {
    components: { Cash, contracta },
    name: 'landing-page',
    data() {
      return {
        activeName: 'first'
      }
    },
    methods: {
      handleClick(tab, event) {
        console.log(tab, event);
      }
    }
  };
</script>

<style>
  .el-header, .el-footer {
    background-color: #121213;
    color: #fff;
    text-align: center;
    line-height: 60px;
  }
  
  .el-main {
    /* background-color: #ffffff;
    color: #000000; */
    padding: 5px 0;
  }
  
  .el-container {
    height: 98vh;
  }
</style>
